<template>
  <div class="alarm-analysis-main">
    <div class="main-title">告警分析</div>
    <div class="analysis-content">
      <div class="analysis-content-left">
        <div class="left-alarm-type" @click="goAlarmInfo">
          <i class="iconfont icon-gaojing" style="color:#DC453A"></i>
          <div>网络管理系统告警</div>
        </div>
        <div class="left-alarm-type" @click="goAlarmInfo">
          <i class="iconfont icon-gaojing1" style="color:#FC9A07"></i>
          <div>动环管理系统告警</div>
        </div>
        <div class="left-alarm-type">云管理系统告警</div>
      </div>
      <div class="analysis-content-right">
        <map-page />
      </div>
    </div>
  </div>
</template>

<script>
import MapPage from "./map";
export default {
  data() {
    return {};
  },
  components: {
    MapPage,
  },
  methods: {
    goAlarmInfo() {
      console.log("ddd",);
      this.$router.push({
        path: '/alarmInfo'
      })
    }
  }
};
</script>

<style lang="scss" scoped>
.alarm-analysis-main {
  height: 100%;

  .analysis-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: calc(100% - 30px);
    margin-top: 10px;

    &-left {
      display: flex;
      justify-content: space-between;

      .left-alarm-type {
        display: flex;
        align-items: center;
        gap: 5px;
        width: 150px;
        height: 30px;
        border-radius: 5px;
        line-height: 30px;
        text-align: center;
        box-sizing: border-box;
      }
    }

    &-right {
      flex: 1;
      margin-top: 10px;
      padding: 10px;
      border-radius: 5px 5px 0px 0px;
      opacity: 1;
      align-self: stretch;
      background: #f7f9ff;
    }
  }
}
</style>